import { start } from "nprogress"

const getters = {
    sidebar: state => state.app.sidebar,
    device: state => state.app.device,
    token: state => state.user.token,
    userInfo: state => state.user.userInfo,
    avatar: state => state.user.userInfo.staffPhoto, // 用户头像
    name: state => state.user.userInfo.username, // 用户名
    routes: state => state.user.routes,
    points: state => state.user.userInfo.roles.points,
    company: state => state => state.user.userInfo.company,
    departmentName: start => start.user.userInfo.departmentName
}
export default getters